<?php

namespace App\Models\Ads;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    protected $guarded = [];
    protected $table = 'ad_categories';

    //每个分类有很多广告
    public function ads()
    {
        return $this->hasMany('App\Models\Ads\Ad');
    }
}
